home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 September / september_2000.iso / intercd / root / ^Linux / cdrtools-1.10 / include / schily.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-01  |  6.8 KB  |  188 lines

  1. /* @(#)schily.h    1.28 00/08/02 Copyright 1985 J. Schilling */
  2. /*
  3.  *    Definitions for libschily
  4.  *
  5.  *    This file should be included past:
  6.  *
  7.  *    mconfig.h / config.h
  8.  *    standard.h
  9.  *    stdio.h
  10.  *    stdlib.h
  11.  *    unistd.h
  12.  *    string.h
  13.  *    sys/types.h
  14.  *
  15.  *    Copyright (c) 1985 J. Schilling
  16.  */
  17. /*
  18.  * This program is free software; you can redistribute it and/or modify
  19.  * it under the terms of the GNU General Public License as published by
  20.  * the Free Software Foundation; either version 2, or (at your option)
  21.  * any later version.
  22.  *
  23.  * This program is distributed in the hope that it will be useful,
  24.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  25.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  26.  * GNU General Public License for more details.
  27.  *
  28.  * You should have received a copy of the GNU General Public License
  29.  * along with this program; see the file COPYING.  If not, write to
  30.  * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  31.  */
  32.  
  33. #ifndef _SCHILY_H
  34. #define _SCHILY_H
  35.  
  36. #ifndef _STANDARD_H
  37. #include <standard.h.h>
  38. #endif
  39.  
  40. #if    defined(_SIZE_T)     || defined(_T_SIZE_) || defined(_T_SIZE) || \
  41.     defined(__SIZE_T)    || defined(_SIZE_T_) || \
  42.     defined(_GCC_SIZE_T) || defined(_SIZET_)  || \
  43.     defined(__sys_stdtypes_h) || defined(___int_size_t_h) || defined(size_t)
  44.  
  45. #ifndef    HAVE_SIZE_T
  46. #    define    HAVE_SIZE_T    /* We already included a size_t definition */
  47. #endif
  48. #endif
  49.  
  50. #ifdef    EOF    /* stdio.h has been included */
  51. extern    int    _cvmod __PR((const char *, int *, int *));
  52. extern    FILE    *_fcons __PR((FILE *, int, int));
  53. extern    FILE    *fdup __PR((FILE *));
  54. extern    int    fdown __PR((FILE *));
  55. extern    int    fexecl __PR((const char *, FILE *, FILE *, FILE *,
  56.                             const char *, ...));
  57. extern    int    fexecle __PR((const char *, FILE *, FILE *, FILE *,
  58.                             const char *, ...));
  59.         /* 6th arg not const, fexecv forces av[ac] = NULL */
  60. extern    int    fexecv __PR((const char *, FILE *, FILE *, FILE *, int,
  61.                             char **));
  62. extern    int    fexecve __PR((const char *, FILE *, FILE *, FILE *,
  63.                     char * const *, char * const *));
  64. extern    int    fgetline __PR((FILE *, char *, int));
  65. extern    int    fgetstr __PR((FILE *, char *, int));
  66. extern    void    file_raise __PR((FILE *, int));
  67. extern    int    fileclose __PR((FILE *));
  68. extern    FILE    *fileluopen __PR((int, const char *));
  69. extern    FILE    *fileopen __PR((const char *, const char *));
  70. extern    long    filepos __PR((FILE *));
  71. extern    int    fileread __PR((FILE *, void *, int));
  72. extern    int    ffileread __PR((FILE *, void *, int));
  73. extern    FILE    *filereopen __PR((const char *, const char *, FILE *));
  74. extern    long    fileseek __PR((FILE *, long));
  75. extern    long    filesize __PR((FILE *));
  76. #ifdef    S_IFMT
  77. extern    int    filestat __PR((FILE *, struct stat *));
  78. #endif
  79. extern    int    filewrite __PR((FILE *, void *, int));
  80. extern    int    ffilewrite __PR((FILE *, void *, int));
  81. extern    int    flush __PR((void));
  82. extern    int    fpipe __PR((FILE **));
  83. extern    int    fprintf __PR((FILE *, const char *, ...));
  84. extern    int    getbroken __PR((FILE *, char *, char, char **, int));
  85. extern    int    ofindline __PR((FILE *, char, const char *, int,
  86.                             char **, int));
  87. extern    int    peekc __PR((FILE *));
  88.  
  89. extern    int    spawnv __PR((FILE *, FILE *, FILE *, int, char * const *));
  90. extern    int    spawnl __PR((FILE *, FILE *, FILE *,
  91.                     const char *, const char *, ...));
  92. extern    int    spawnv_nowait __PR((FILE *, FILE *, FILE *,
  93.                     const char *, int, char *const*));
  94. #endif    /* EOF */
  95.  
  96. extern    int    _niread __PR((int, void *, int));
  97. extern    int    _openfd __PR((const char *, int));
  98. extern    int    on_comerr __PR((void (*fun)(int, void *), void *arg));
  99. extern    void    comerr __PR((const char *, ...));
  100. extern    void    comerrno __PR((int, const char *, ...));
  101. extern    int    errmsg __PR((const char *, ...));
  102. extern    int    errmsgno __PR((int, const char *, ...));
  103. #ifdef    HAVE_SIZE_T
  104. extern    int    serrmsg __PR((char *, size_t, const char *, ...));
  105. extern    int    serrmsgno __PR((int, char *, size_t, const char *, ...));
  106. #endif
  107. extern    void    comexit    __PR((int));
  108. extern    char    *errmsgstr __PR((int));
  109. extern    int    error __PR((const char *, ...));
  110. extern    char    *fillbytes __PR((void *, int, char));
  111. extern    int    findline __PR((const char *, char, const char *,
  112.                             int, char **, int));
  113. extern    int    getline __PR((char *, int));
  114. extern    int    getstr __PR((char *, int));
  115. extern    int    breakline __PR((char *, char, char **, int));
  116. extern    int    getallargs __PR((int *, char * const**, const char *, ...));
  117. extern    int    getargs __PR((int *, char * const**, const char *, ...));
  118. extern    int    getfiles __PR((int *, char * const**, const char *));
  119. extern    char    *astoi __PR((const char *, int *));
  120. extern    char    *astol __PR((const char *, long *));
  121.  
  122. /*extern    void    handlecond __PR((const char *, SIGBLK *, int(*)(const char *, long, long), long));*/
  123. extern    void    unhandlecond __PR((void));
  124.  
  125. extern    int        patcompile __PR((const unsigned char *, int, int *));
  126. extern    unsigned char    *patmatch __PR((const unsigned char *, const int *,
  127.                     const unsigned char *, int, int, int));
  128.  
  129. extern    int    printf __PR((const char *, ...));
  130. extern    char    *movebytes __PR((const void *, void *, int));
  131.  
  132. extern    void    save_args __PR((int, char**));
  133. extern    int    saved_ac __PR((void));
  134. extern    char    **saved_av __PR((void));
  135. extern    char    *saved_av0 __PR((void));
  136. #ifndef    seterrno
  137. extern    int    seterrno __PR((int));
  138. #endif
  139. extern    void    set_progname __PR((const char *));
  140. extern    char    *get_progname __PR((void));
  141.  
  142. extern    void    setfp __PR((void * const *));
  143. extern    int    wait_chld __PR((int));
  144. extern    int    geterrno __PR((void));
  145. extern    void    raisecond __PR((const char *, long));
  146. #ifdef    HAVE_SIZE_T
  147. /*
  148.  * We currently cannot define this here because there IXIX has a definition
  149.  * than violates the standard.
  150.  */
  151. #ifndef    HAVE_SNPRINTF
  152. extern    int    snprintf __PR((char *, size_t, const char *, ...));
  153. #endif
  154. #endif
  155. /*extern    int    sprintf __PR((char *, const char *, ...)); ist woanders falsch deklariert !!!*/
  156. extern    char    *strcatl __PR((char *, ...));
  157. extern    int    streql __PR((const char *, const char *));
  158. #ifdef    va_arg
  159. extern    int    format __PR((void (*)(char, long), long, const char *, va_list));
  160. #else
  161. extern    int    format __PR((void (*)(char, long), long, const char *, void *));
  162. #endif
  163.  
  164. extern    int    ftoes __PR((char *, double, int, int));
  165. extern    int    ftofs __PR((char *, double, int, int));
  166.  
  167. #ifdef    EOF    /* stdio.h has been included */
  168. extern    int    js_fprintf    __PR((FILE *, const char *, ...));
  169. extern    int    js_printf    __PR((const char *, ...));
  170. #ifdef    HAVE_SIZE_T
  171. extern    int    js_snprintf    __PR((char *, size_t, const char *, ...));
  172. #endif
  173. extern    int    js_sprintf    __PR((char *, const char *, ...));
  174. #endif    /* EOF */
  175.  
  176. extern    void    swabbytes __PR((void *, int));
  177. extern    char    *getav0 __PR((void));
  178. extern    char    **getavp __PR((void));
  179. extern    void    **getfp __PR((void));
  180. extern    int    flush_reg_windows __PR((int));
  181. extern    int    cmpbytes __PR((const void *, const void *, int));
  182.  
  183. #if defined(_JOS) || defined(JOS)
  184. #    include <jos_io.h>
  185. #endif
  186.  
  187. #endif    /* _SCHILY_H */
  188.